package com.csyf.manager.schedule;

import com.csyf.manager.thread.DySchedule;
import lombok.extern.slf4j.Slf4j;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 5分钟处理一次订单
 * @Author: Enzo
 * @Date: 2018/5/7 10:18
 */

@Slf4j
@Component
public class FiveProcessSchedule implements Job {

    @Autowired
    private DySchedule dySchedule;


    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        log.info("=================================");
        log.info("FiveProcessSchedule");
        log.info("===============================>>");

        dySchedule.doJob();


    }

}
